package org.ms.mtx.core.configuration;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;

/**
 * The Transaction Properties
 *
 * @author lry
 */
@Data
@ToString
@ConfigurationProperties(prefix = "transaction.cancel")
public class TransactionProperties implements Serializable {

    /**
     * The asynchronous cancel
     * <p>
     * The default value is false.
     */
    private Boolean async = false;
    /**
     * The core pool size
     */
    private int corePoolSize = 5;
    /**
     * The max pool size
     */
    private int maxPoolSize = 10;
    /**
     * The keep alive time
     */
    private long keepAliveTime = 15 * 1000;

}
